
// Source File Name:   CTBAttributeException.java

package com.sunwayhorizo.health.hl7.common;


import java.io.Serializable;

import java.util.HashMap;
import java.util.Vector;


// Referenced classes of package oracle.apps.ctb.fwk.base.common:
//            CTBRowException, CTBException

public class AttributeException extends RowException {

    public static final String RCS_ID = "$Header: CTBAttributeException.java 115.7 2003/10/27 06:37:52 hcops noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: CTBAttributeException.java 115.7 2003/10/27 06:37:52 hcops noship $", "oracle.apps.ctb.fwk.base.common");
    public static final String ATTRIBUTE_NAME_PARAM = "ATTRIBUTE_NAME_PARAM";
    public static final String ATTRIBUTE_VALUE_PARAM = "ATTRIBUTE_VALUE_PARAM";

    public void initalize()
    {
        m_Attrs = new Vector();
        m_Attrs.addElement("TYPE_PARAM");
        m_Attrs.addElement("CODE_PARAM");
        m_Attrs.addElement("MESSAGE_PARAM");
        m_Attrs.addElement("NAME_PARAM");
        m_Attrs.addElement("KEY_PARAM");
        m_Attrs.addElement("ATTRIBUTE_NAME_PARAM");
        m_Attrs.addElement("ATTRIBUTE_VALUE_PARAM");
    }

    public AttributeException()
    {
        initalize();
    }

    public AttributeException(String s, HashMap hashmap, String s1, Serializable serializable, String s2, String s3,
                              ServiceException[] aserviceexception,
                              ServiceException[] aserviceexception1)
    {
        initalize();
        m_service = new ServiceAttributeException(s, hashmap, s1, serializable, s2, s3, aserviceexception, aserviceexception1);
    }

    public AttributeException(ServiceAttributeException serviceattributeexception)
    {
        initalize();
        m_service = serviceattributeexception;
    }

    public String getAttributeName()
    {
        return ((ServiceAttributeException)m_service).getAttributeName();
    }

    public Serializable getAttributeValue()
    {
        return ((ServiceAttributeException)m_service).getAttributeValue();
    }

}
